
// https://www.cnblogs.com/myyouzi/p/11835471.html
import { Directive, ElementRef, HostListener, Renderer2 } from '@angular/core';

@Directive({
  selector: '[jackDrop]'
})
export class DropDirective {

  constructor(
    private _elementRef:ElementRef,
    private renderer: Renderer2,

  ) { }

  @HostListener('dragenter', ['$event'])
  ondragenter(evt) {

  }

  @HostListener('dragover', ['$event'])
  ondragover(evt) {

  }
  
  @HostListener('drop', ['$event'])
  ondrop(evt) {
    console.log(evt)
  }

  @HostListener('dragleave', ['$event'])
  ondragleave(evt) {

  }

}
